package uit.nfc.utils;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class CommentListAdapter extends BaseAdapter {

	private String[] comments = {"abc", "def", "ghi", "jkl", "abc", "def", "ghi", "jkl", "abc", "def", "ghi", "jkl", "abc", "def", "ghi", "jkl"};
	
	@Override
	public int getCount() {
		return comments.length;
	}

	@Override
	public Object getItem(int position) {
		return comments[position];
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		if (convertView == null) {
			convertView = new TextView(parent.getContext());
			((TextView)convertView).setText(comments[position]);
		} else {
			
		}
		
		return convertView;
	}

}
